package com.modules.util;

import java.util.Comparator;

import com.stnet.entity.RolesAuthorities;

public class Mycomparator  implements Comparator{

    public int compare(Object o1,Object o2) {
    	RolesAuthorities p1=(RolesAuthorities)o1;
    	RolesAuthorities p2=(RolesAuthorities)o2; 
    	if(p1.getAuthorities().getOrderAuth()>p2.getAuthorities().getOrderAuth())
    	//if(p1.getAuthorities().getId()<p2.getAuthorities().getId())
           return 1;
       else
          return 0;
       }

}
